package com.bonorsoft.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author WilliamYe
 * @since 2020-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysMoney implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ID_WORKER_STR)
    private java.lang.String id;

    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名", width = 15)
    private String name;

    @Excel(name = "身份号码", width = 25)
    private String idNumber;

    /**
     * 手机号码
     */
    @Excel(name = "联系方式", width = 15)
    private String phone;

    /**
     * 微信昵称
     */
    private String nickName;

    /**
     * 缴费金额
     */
    @Excel(name = "缴费金额", width = 15, exportConvert=true)
    private String money;

    /**
     * 缴费时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date date;

    @Excel(name = "缴费时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date payTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date closeTime;



    /**
     * 缴费状态
     */
    private String payStatus;

    private String outTradeNo;

    private String openid;

    @Excel(name = "缴费顺序", width = 15)
    private java.lang.Integer sequence;

    private String sex;



    private String parentName;

    public String  convertgetMoney(){
        return Float.parseFloat(this.money)/100 + "元";
    }

}
